/* 全局样式 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  background-color: #f5f7fa;
}

/* 布局相关 */
.page-container {
  padding: 20px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e6e6e6;
}

.page-title {
  font-size: 20px;
  font-weight: 500;
  color: #303133;
  margin: 0;
}

/* 卡片样式 */
.status-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.status-card:hover {
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.status-card .title {
  font-size: 14px;
  color: #909399;
  margin-bottom: 8px;
}

.status-card .value {
  font-size: 28px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 8px;
}

.status-card .subtitle {
  font-size: 12px;
  color: #c0c4cc;
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-tag.success {
  background-color: #f0f9ff;
  color: #10b981;
  border: 1px solid #10b981;
}

.status-tag.running {
  background-color: #fef3c7;
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.status-tag.failed {
  background-color: #fef2f2;
  color: #ef4444;
  border: 1px solid #ef4444;
}

.status-tag.pending {
  background-color: #f3f4f6;
  color: #6b7280;
  border: 1px solid #6b7280;
}

/* 表格样式增强 */
.el-table {
  font-size: 14px;
}

.el-table .cell {
  padding: 8px 0;
}

.table-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* 表单样式 */
.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-footer {
  text-align: center;
  margin-top: 30px;
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .table-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* 动画效果 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* 工具类 */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.ml-10 {
  margin-left: 10px;
}

.mr-10 {
  margin-right: 10px;
}

/* 加载状态 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #909399;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #c0c4cc;
}

.empty-state .text {
  font-size: 14px;
  margin-bottom: 16px;
}
/* 修复选择框下拉选项显示问题 */
.el-select-dropdown {
  z-index: 9999 !important;
  position: fixed !important;
}

.el-select-dropdown__item {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  line-height: normal !important;
  padding: 8px 20px !important;
}

.el-select-dropdown__list {
  max-height: 274px !important;
  overflow-y: auto !important;
}

.el-popper {
  z-index: 9999 !important;
}

/* 确保所有下拉选项都可见 */
.el-select-dropdown .el-select-dropdown__item {
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
}

/* 修复可能的重叠问题 */
.el-select-dropdown.el-popper {
  transform: translate3d(0, 0, 0) !important;
}

/* 修复单选按钮组显示问题 */
.el-radio-group {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.el-radio {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  margin-right: 20px !important;
  margin-bottom: 10px !important;
}

.el-radio__input {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
}

.el-radio__label {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  margin-left: 8px !important;
}

/* 确保单选按钮不会重叠 */
.el-radio-group .el-radio {
  transform: translate3d(0, 0, 0) !important;
  z-index: auto !important;
}
